package com.wuyou.spring_demo.bean;

/**
 * Animous
 *
 * @Date 2025/7/3 17:12
 * @Author 无忧
 */
public class Animal {

    private Integer age;

    private String name;


    private void eat(String food){
        System.out.println(name + "吃了" + food);
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
